﻿using System;

namespace Entities
{
    [Serializable]
    public class DonDatHangKH
    {
        private string hanhdong;
        private int donDatHangKHID;
        private string maDonDatHangKH;
        private DateTime ngayDonHang;
        private string maKhachHang;
        private string tenKhachHang;
        private string noHienThoi;
        private string trangThaiDonDatHang;
        private DateTime ngayNhapDuKien;
        private string hinhThucThanhToan;
        private string maKho;
        private string tenKho;
        private string maNhanVien;
        private string tenNhanVien;
        private string maTienTe;
        private bool loaiphieu;
        private string ghiChu;
        private bool deleted;
        private Entities.HangHoa[] hangHoa;


        private Entities.GoiHang[] goiHang;
        public Entities.HangHoa[] HangHoa
        {
            get { return hangHoa; }
            set { hangHoa = value; }
        }
        public Entities.GoiHang[] GoiHang
        {
            get { return goiHang; }
            set { goiHang = value; }
        }
        Entities.TaiKhoan taiKhoan;
        public Entities.TaiKhoan TaiKhoan
        {
            get { return this.taiKhoan; }
            set
            {
                this.taiKhoan = value;
            }
        }

        public DonDatHangKH()
        { }
        public DonDatHangKH(string hanhdong, int donDatHangKHID, string maDonDatHangKH, DateTime ngayDonHang, string maKhachHang, string tenKhachHang, string noHienThoi, string trangThaiDonDatHang, DateTime ngayNhapDuKien, string hinhThucThanhToan, string maKho, string tenKho, string maNhanVien, string tenNhanVien, string maTienTe, bool loaiphieu, string ghiChu, bool deleted,Entities.TaiKhoan taiKhoan)
        {

            this.taiKhoan = taiKhoan;
            this.hanhdong = hanhdong;
            this.donDatHangKHID = donDatHangKHID;
            this.maDonDatHangKH = maDonDatHangKH;
            this.ngayDonHang = ngayDonHang;
            this.maKhachHang = maKhachHang;
            this.tenKhachHang = tenKhachHang;
            this.noHienThoi = noHienThoi;
            this.trangThaiDonDatHang = trangThaiDonDatHang;
            this.ngayNhapDuKien = ngayNhapDuKien;
            this.hinhThucThanhToan = hinhThucThanhToan;
            this.maKho = maKho;
            this.tenKho = tenKho;
            this.maNhanVien = maNhanVien;
            this.tenNhanVien = tenNhanVien;
            this.maTienTe = maTienTe;
            this.loaiphieu = loaiphieu;
            this.ghiChu = ghiChu;
            this.deleted = deleted;
        }
        public string HanhDong
        {
            get { return this.hanhdong; }
            set
            {
                this.hanhdong = value;
            }
        }
        public int DonDatHangKHID
        {
            get { return this.donDatHangKHID; }
            set
            {
                this.donDatHangKHID = value;
            }
        }
        public string MaDonDatHangKH
        {
            get { return this.maDonDatHangKH; }
            set
            {
                this.maDonDatHangKH = value;
            }
        }
        public DateTime NgayDonHang
        {
            get { return this.ngayDonHang; }
            set { this.ngayDonHang = value; }
        }
        public string MaKhachHang
        {
            get { return this.maKhachHang; }
            set
            {
                
                this.maKhachHang = value;
            }
        }
        public string TenKhachHang
        {
            get { return this.tenKhachHang; }
            set { this.tenKhachHang = value; }
        }
        public string NoHienThoi
        {
            get { return this.noHienThoi; }
            set { this.noHienThoi = value; }
        }
        public string TrangThaiDonDatHang
        {
            get { return this.trangThaiDonDatHang; }
            set { this.trangThaiDonDatHang = value; }
        }
        public DateTime NgayNhapDuKien
        {
            get { return this.ngayNhapDuKien; }
            set { this.ngayNhapDuKien = value; }
        }
        public string HinhThucThanhToan
        {
            get { return this.hinhThucThanhToan; }
            set { this.hinhThucThanhToan = value; }
        }
        public string MaKho
        {
            get { return this.maKho; }
            set { this.maKho = value; }
        }
        public string TenKho
        {
            get { return this.tenKho; }
            set { this.tenKho = value; }
        }
        public string MaNhanVien
        {
            get { return this.maNhanVien; }
            set { this.maNhanVien = value; }
        }
        public string TenNhanVien
        {
            get { return this.tenNhanVien; }
            set { this.tenNhanVien = value; }
        }
        public string MaTienTe
        {
            get { return this.maTienTe; }
            set { this.maTienTe = value; }
        }
        public bool LoaiPhieu
        {
            get { return this.loaiphieu; }
            set { this.loaiphieu = value; }
        }
        
        public string GhiChu
        {
            get { return this.ghiChu; }
            set { this.ghiChu = value; }
        }
        public bool Deleted
        {
            get { return this.deleted; }
            set { this.deleted = value; }
        }
        

    }
}